<?php

namespace Acme\DemoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="Acme\DemoBundle\Repository\CatRepository")
 * @ORM\Table(name="category")
 */
class Cat {

    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
    /*
     * @ORM\Name
     * @ORM\Column(name="name",type="string")
     * 
     */
    protected $name;
    /*
     * @ORM\Parent
     * @ORM\Column(name="parent",type="integer")
     * 
     */
    protected $parent;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
}